home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / pp / deletest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-01  |  596 b   |  20 lines

  1. /*
  2.                                 D E L E T E S T . C
  3.  
  4.     Delete standard comment from the line pointed to by 'cp'
  5. */
  6.  
  7. #include "icm-pp.h"
  8.  
  9. void delete_std_comment(char *cp)
  10. {
  11.     char
  12.         *eoc;                               /* end of comment */
  13.  
  14.     if (!(eoc = strstr(cp, "*/")))          /* can't find it ? */
  15.         error ("%s: %d: unterminated std-comment in #define",
  16.                 filestack [filesp].n, filestack [filesp].l);
  17.     else                                    /* copy the trailer to cp */
  18.         strcpy(cp, eoc + 2);                /* thus killing the std-comment */
  19. }
  20.